import type { App } from "vue";
import BasicTable from "./BasicTable/index.vue";

// 导出组件
export { BasicTable };

// 导出类型
export type * from "./BasicTable/types";

// 批量注册组件
const components = [BasicTable];

// 导出一个install函数，用于安装组件
export const install = (app: App) => {
  // 遍历components数组中的每个组件
  components.forEach((component) => {
    // 定义组件的名称为BasicTable
    const name = "BasicTable";
    // 将组件注册到app中
    app.component(name, component);
  });
};
